package com.hsurosy.hsuchain.nft.user.domain.service.config;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 认证服务配置类
 *
 * @Author Hsu琛君珩
 * @Date 2024-10-05 19:09
 * @Description
 * @Version: v1.0.0
 */
@ConfigurationProperties(prefix = AuthProperties.PREFIX)
public class AuthProperties {

    // 定义外部配置文件中的前缀 "spring.auth"
    public static final String PREFIX = "spring.auth";

    // 认证服务的主机地址
    private String host;

    // 认证服务的路径
    private String path;

    // 认证服务的AppCode
    private String appcode;

    // 获取主机地址
    public String getHost() {
        return host;
    }

    // 设置主机地址
    public void setHost(String host) {
        this.host = host;
    }

    // 获取路径
    public String getPath() {
        return path;
    }

    // 设置路径
    public void setPath(String path) {
        this.path = path;
    }

    // 获取AppCode
    public String getAppcode() {
        return appcode;
    }

    // 设置AppCode
    public void setAppcode(String appcode) {
        this.appcode = appcode;
    }
}
